<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $storage_mode 存储模式 (1 本地 2 阿里云 3 七牛云 4 腾讯云)
 * @property string $origin_name 原文件名
 * @property string $object_name 新文件名
 * @property string $hash 文件hash
 * @property string $mime_type 资源类型
 * @property string $suffix 文件后缀
 * @property int $size_byte 字节数
 * @property string $path path
 * @property int $user_id 用户id
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at
 */
class AccountUploadfile extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'account_uploadfile';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'storage_mode', 'origin_name', 'object_name', 'hash', 'mime_type', 'suffix', 'size_byte', 'path', 'user_id', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'storage_mode' => 'integer', 'size_byte' => 'integer', 'user_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
